package com.wanglei.ssm.service;

import com.wanglei.ssm.domain.Role;

import java.util.List;

public interface RoleService {
    List<Role> findAll() throws Exception;

    void save(Role role) throws Exception;

    List<Role> findOtherRole(String id) throws Exception;

    Role findById(String roleId) throws Exception;

    /**
     * 添加资源权限给角色
     *
     *  @param roleId        角色id
     * @param permissionIds 资源权限id集合
     */
    void addPermissionToRole(String roleId, String[] permissionIds) throws Exception;
}
